package top.lvkun.org.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.lvkun.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    private Integer state;
    private Long manager_id;
    //引用对象
    private Employee manager;
    private Long parent_id;
    /*上级部门*/
    private Department parent;

    private List<Department> children = new ArrayList<>();

}
